package io.doge.cc.admin.holder;

import io.doge.cc.core.DogeCc;
import io.doge.cc.core.ZooDogeCc;

/**
 * Created by number.liu on 2015/10/29
 */
public class DogeCcHolder {

    public static DogeCc getDogeCc() {
        return ZooHolderInstance.DOGE_CC;
    }

    private final static class ZooHolderInstance {
        private static final DogeCc DOGE_CC = new ZooDogeCc(System.getProperty("zoo"), "doge-cc", Integer.parseInt(System.getProperty("zooTimeout")));
    }
}
